package com.uwlaser.service.dto;

import com.uwlaser.annotation.Query;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.sql.Timestamp;
import java.util.Set;

import io.swagger.annotations.ApiModelProperty;

/**
* @author zk-Qin
* @date 2022-05-11
*/
@Data
@Builder
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class DataMainDto implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    private String id;

    @ApiModelProperty(value = "产品SN")
    private String productSn;

    @ApiModelProperty(value = "产品型号")
    private String productCode;

    @ApiModelProperty(value = "产品类型")
    private String productType;

    @ApiModelProperty(value = "订单编号")
    private String orderCode;

    @ApiModelProperty(value = "工单编号")
    private String workOrderCode;

    @ApiModelProperty(value = "结果")
    private String result;

    @ApiModelProperty(value = "产线编号")
    private String lienCode;

    @ApiModelProperty(value = "工段编号")
    private String sectionCode;

    @ApiModelProperty(value = "开始加工时间")
    private Date startTime;

    @ApiModelProperty(value = "结束加工时间")
    private Date endTime;

    @ApiModelProperty(value = "工艺路线编号")
    private String pathCode;

    @ApiModelProperty(value = "工艺路线版本")
    private String pathVersion;

    @ApiModelProperty(value = "工艺参数编号")
    private String paramsCode;

    @ApiModelProperty(value = "工艺参数版本")
    private String paramsVersion;

    @ApiModelProperty(value = "BOM编号")
    private String bomCode;

    @ApiModelProperty(value = "BOM版本")
    private String bomVersion;

    @ApiModelProperty(value = "预留1")
    private String untitled1;

    @ApiModelProperty(value = "通道")
    private String aisleCode;

    @ApiModelProperty(value = "托盘")
    private String trayCode;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "班次编码")
    private String shiftCode;

    @ApiModelProperty(value = "班组id")
    private Integer teamGroupId;

    @ApiModelProperty(value = "工艺参数集合")
    private Set<CraftParamDetailDto> craftParam;

    @ApiModelProperty(value = "档位")
    private String gear;

    @ApiModelProperty(value = "容量")
    private String capacity;

    @Query
    private String year;

    @Query
    private String month;

    @Query
    private String day;

    //日产量
    @Query
    private Integer dailyOutput;

    //月产量
    @Query
    private Integer monthOutput;

    //月合格产量
    @Query
    private Integer OKMonthOutput;

    //合格率
    @Query
    private Double OKRate;

    //NG率
    @Query
    private Double NGRate;

    //合格数量
    @Query
    private Double OKCount;

    //NG数量
    @Query
    private Double NGCount;
}
